﻿<UserControl x:Class="SQLDocumentor.UI.SQLDocumentorUI"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
             mc:Ignorable="d" Height="480" Width="700">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>

        </Grid.RowDefinitions>
        <xctk:Wizard x:Name="wzDocGen" FinishButtonClosesWindow="False" Grid.Row="0" Finish="wzDocGen_Finish" PageChanged="wzDocGen_PageChanged">
            <xctk:WizardPage x:Name="IntoPage" Title="Bienvenue dans SQL Documentor" Description="Ce logiciel vous permettra de créer une documentation pour votre environnement SQL"/>
            <xctk:WizardPage  x:Name="SQLPage" Title="Information SQL Server" >
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Label Grid.Row="0" Content="Instance SQL"/>
                    <Label Grid.Row="1" Content="Authentification SQL"/>
                    <Label Grid.Row="2" Content="Utilisateur SQL"/>
                    <Label Grid.Row="3" Content="Mot de passe SQL"/>
                    <TextBox Grid.Column="1" Grid.Row="0" x:Name="txtInstance" VerticalAlignment="Center"/>
                    <CheckBox Grid.Column="1" Grid.Row="1" x:Name="chkAuthSQL" VerticalAlignment="Center"/>
                    <TextBox Grid.Column="1" Grid.Row="2" x:Name="txtUserName" VerticalAlignment="Center"/>
                    <TextBox Grid.Column="1" Grid.Row="3" x:Name="txtPassword" VerticalAlignment="Center"/>
                </Grid>
            </xctk:WizardPage>
            <xctk:WizardPage x:Name="DocumentInfoPage" Title="Information du document">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Label Grid.Row="0" Content="Chemin du fichier"/>
                    <Label Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" x:Name="lblPath"/>
                    <Button Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" x:Name="btnSave" Content="Parcourir" Click="btnSave_Click"/>
                    <Label Grid.Row="1">Auteur</Label>
                    <TextBox x:Name="txtAuthor" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center"/>
                    <Label Grid.Row="2">Description</Label>
                    <TextBox x:Name="txtDescription" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" Text="Audit d'un environnement SQL Server"/>
                    <Label Grid.Row="3">Sujet</Label>
                    <TextBox x:Name="txtSubject" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Text="Audit"/>
                    <Label Grid.Row="4">Titre</Label>
                    <TextBox x:Name="txtTitle" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" Text="SQL Server"/>
                </Grid>
            </xctk:WizardPage>
            <xctk:WizardPage x:Name="FinishPage" NextButtonVisibility="Hidden" Title="Le document est prêt à étre généré" Description="Cliquez sur Finish pour que le document soit généré" CanFinish="True"/>
            <xctk:WizardPage x:Name="Terminated" Title="Génération du document" HelpButtonVisibility="Hidden" BackButtonVisibility="Hidden" CancelButtonVisibility="Hidden" FinishButtonVisibility="Hidden" NextButtonVisibility="Hidden">
                <xctk:WizardPage.Content>
                    <StackPanel>
                        <Label x:Name="lblTarget"/>
                        <ProgressBar x:Name="pBar" Height="15"/>
                    </StackPanel>
                </xctk:WizardPage.Content>
            </xctk:WizardPage>
            <xctk:WizardPage x:Name="EndWizard" Title="Document généré" HelpButtonVisibility="Hidden" BackButtonVisibility="Hidden" CancelButtonVisibility="Hidden" FinishButtonVisibility="Hidden" NextButtonVisibility="Hidden"/>
        </xctk:Wizard>
    </Grid>
</UserControl>
